home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 168 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: newsbf02.news.aol.com!not-for-mail
  2. From: nautilpomp@aol.com (NautilPomp)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Blinking mouse
  5. Date: 2 Jan 1996 08:20:31 -0500
  6. Organization: America Online, Inc. (1-800-827-6364)
  7. Sender: root@newsbf02.news.aol.com
  8. Message-ID: <4cbbev$l6n@newsbf02.news.aol.com>
  9. References: <51231203347$71C7@lasernet.com>
  10. Reply-To: nautilpomp@aol.com (NautilPomp)
  11. NNTP-Posting-Host: newsbf02.mail.aol.com
  12.  
  13.     Try not to hide/show mouse outside the UpdateClock(), but do this
  14. inside it and only when mouse is in the region of your Image, e.g. don't
  15. touch when don't need. For ex.:
  16.   (x1,y1,x2,y2) - update region
  17.  
  18. //****************** starts **************************
  19.  if (mouse.x>=x1 && mouse.y<=y1 && 
  20.     mouse.x<=x2 && mouse.y>=y2)
  21.       mouse.hide()   // or show
  22. //******************* ends ************************
  23.  
  24.  
  25.                                                                           
  26.                    Sergey
  27.  
  28. ------ For those who don't like AOL:
  29.          Do not blame AOL for being bad and those who use it, but ask
  30. yourself: "May be             there is nothing else they can use?"
  31.                                                                       
  32. (Koz'ma Prutkov style)
  33.